﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Webdiyer.WebControls.Mvc;
namespace B4Deal.Models
{
    public class PagingDeal<T> : List<T>, IPagedList
    {
        public PagingDeal(int pageIndex, int pageSize, int totalItemCount, IEnumerable<T> items)
        {
            CurrentPageIndex = pageIndex;
            PageSize = pageSize;
            TotalItemCount = totalItemCount;
            AddRange(items);
        }

        public int CurrentPageIndex { get; set; }

        public int PageSize { get; set; }

        public int TotalItemCount { get; set; }
    }
}